package com.itheima.trade;

import org.apache.logging.log4j.core.config.DefaultConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@MapperScan("com.itheima.trade.mapper")
@EnableFeignClients(basePackages = "com.itheima.model.common.feign.fallback.client",defaultConfiguration = DefaultConfiguration.class) // 开启Feign
public class TradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TradeApplication.class,args);
    }
}
